<template>
    <div>
        <el-container style="height: 730px; border: 1px solid #eee">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu :default-openeds="['1', '3']">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>用户操作行为</template>
        <el-menu-item-group >
          <router-link active-class="class" :to="`/UserOrderPage/MainPage?userId=${userId}`"><el-menu-item index="1-1"><i class="el-icon-tableware"></i>点餐界面</el-menu-item></router-link>
          <router-link active-class="class" :to="`/UserOrderPage/UserInfo?userId=${userId}`"><el-menu-item index="1-2"><i class="el-icon-s-tools"></i>个人中心</el-menu-item></router-link>
          <router-link active-class="class" :to="`/UserOrderPage/ForumPage?userId=${userId}`"><el-menu-item index="1-3"><i class="el-icon-chat-dot-square"></i>论坛中心</el-menu-item></router-link>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
  <el-main ref="shb">
    <router-view></router-view>
  </el-main >
</el-container>
    </div>
</template>

<style>
  
  .el-aside {
    color: #333;
  }
  a{
    text-decoration:none
  }
  .el-container{
    overflow: auto;
  }
  /* .el-main{
    display: flex;
  } */
  .el-main{
    display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x:hidden;
  background-image: url("https://upload-bbs.miyoushe.com/upload/2023/06/01/339713770/85540e0fcaee8d4387c9b773d3e578cc_1805450646266157422.jpg");
  background-size: cover;
}
</style>

<script>
    import axios  from 'axios';
    export default{
        data(){
            return{
                userId:''
            }
        },
        mounted(){
          this.userId=this.$route.query.userId
          console.log(this.$route.query.userId);
        }
    }
</script>